package GUI;


import javax.swing.table.DefaultTableModel;
//import Entity.ActivityReport;
import java.awt.*;
import javax.swing.*;
import com.jgoodies.forms.factories.DefaultComponentFactory;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;


public class ActivityReportOutput_Gui extends JPanel {
	
//	private static final long serialVersionUID = 1L;
	//private ActivityReport E_AR;
	private JTable table_1;
	private JButton btnBack;
	private JButton btnPressToView;
	private JButton btnPressToViewFrozen;
	private JButton btnPressToViewclosed;
	private JButton btnPressToViewDenied;
	public ActivityReportOutput_Gui() {
		setLayout(null);
		
		table_1 = new JTable();
		table_1.setFillsViewportHeight(true);
		table_1.setModel(new DefaultTableModel(
			new Object[][] {
				{null, "total days", "frequency", "standard deviation", "median"},
				{" active", null, null, null, null},
				{" frozen", null, null, null, null},
				{" closed", null, null, null, null},
				{"denied", null, null, null, null},
			},
			new String[] {
				"New column", "New column", "New column", "New column", "New column"
			}
		));
		table_1.getColumnModel().getColumn(0).setPreferredWidth(94);
		table_1.getColumnModel().getColumn(0).setMinWidth(85);
		table_1.getColumnModel().getColumn(1).setPreferredWidth(85);
		table_1.getColumnModel().getColumn(2).setPreferredWidth(85);
		table_1.getColumnModel().getColumn(3).setPreferredWidth(85);
		table_1.getColumnModel().getColumn(4).setPreferredWidth(85);
		table_1.setBounds(10, 165, 542, 80);
		add(table_1);
		
		JLabel lblNewJgoodiesTitle = DefaultComponentFactory.getInstance().createTitle("           Activity report");
		lblNewJgoodiesTitle.setFont(new Font("David", Font.BOLD | Font.ITALIC, 17));
		lblNewJgoodiesTitle.setIcon(new ImageIcon(ActivityReportOutput_Gui.class.getResource("/Picture/Activity-Monitor-System-Monitor-or-Task-Manager-icon.png")));
		lblNewJgoodiesTitle.setBounds(22, 11, 353, 128);
		add(lblNewJgoodiesTitle);
		
		btnBack = new JButton("Back");
		btnBack.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			}
		});
		btnBack.setIcon(new ImageIcon(ActivityReportOutput_Gui.class.getResource("/Picture/go-back-icon.png")));
		btnBack.setBounds(10, 496, 135, 47);
		add(btnBack);
		
		btnPressToView = new JButton("press to view ACTIVE REQUEST graph");
		btnPressToView.setIcon(new ImageIcon(ActivityReportOutput_Gui.class.getResource("/Picture/Graph-icon.png")));
		btnPressToView.setBounds(130, 261, 284, 47);
		add(btnPressToView);
		
		btnPressToViewFrozen = new JButton("press to view FROZEN REQUEST graph");
		btnPressToViewFrozen.setIcon(new ImageIcon(ActivityReportOutput_Gui.class.getResource("/Picture/Graph-icon.png")));
		btnPressToViewFrozen.setBounds(130, 319, 284, 47);
		add(btnPressToViewFrozen);
		
		btnPressToViewclosed = new JButton("press to view CLOSED REQUEST graph");
		btnPressToViewclosed.setIcon(new ImageIcon(ActivityReportOutput_Gui.class.getResource("/Picture/Graph-icon.png")));
		btnPressToViewclosed.setBounds(130, 377, 284, 47);
		add(btnPressToViewclosed);
		
		btnPressToViewDenied = new JButton("press to view DENIED REQUEST  graph");
		btnPressToViewDenied.setIcon(new ImageIcon(ActivityReportOutput_Gui.class.getResource("/Picture/Graph-icon.png")));
		btnPressToViewDenied.setBounds(130, 435, 284, 47);
		add(btnPressToViewDenied);
	}
	public JTable getTable_1() {
		return table_1;
	}
	public void setTable_1(JTable table_1) {
		this.table_1 = table_1;
	}
	
	public JButton getBtnBack() {
		return btnBack;
	}
	public void setBtnBack(JButton btnBack) {
		this.btnBack = btnBack;
	}
	public JButton getBtnPressToView() {
		return btnPressToView;
	}
	public void setBtnPressToView(JButton btnPressToView) {
		this.btnPressToView = btnPressToView;
	}
	public JButton getBtnPressToViewFrozen() {
		return btnPressToViewFrozen;
	}
	public void setBtnPressToViewFrozen(JButton btnPressToViewFrozen) {
		this.btnPressToViewFrozen = btnPressToViewFrozen;
	}
	public JButton getBtnPressToViewclosed() {
		return btnPressToViewclosed;
	}
	public void setBtnPressToViewclosed(JButton btnPressToViewclosed) {
		this.btnPressToViewclosed = btnPressToViewclosed;
	}
	public JButton getBtnPressToViewDenied() {
		return btnPressToViewDenied;
	}
	public void setBtnPressToViewDenied(JButton btnPressToViewDenied) {
		this.btnPressToViewDenied = btnPressToViewDenied;
	}
	
}
